<script setup>
import { userDemo } from "@/store/demo";

const storeDemo = userDemo();
// console.log(storeDemo)

function add() {
  storeDemo.increment();
}
</script>

<template>
  <h1>状态管理</h1>

  <h3>{{ storeDemo.count }}</h3>

  <button @click="add">count++</button>
</template>
